#ifndef SPARSE_IO_HH_
#define SPARSE_IO_HH_
#include "sparse_data.hh"

#include <iostream>
#include <fstream>
#include <boost/shared_ptr.hpp>
#include <boost/tuple/tuple.hpp>

boost::shared_ptr< sp_stat_mat_t >
read_pairs (istream& FIN, bool weighted);

boost::shared_ptr< sp_stat_mat_t >
read_pairs (const char* fname, bool weighted);

void
write_pairs (const sp_stat_mat_t& mat, ostream& FOUT);

void
write_pairs (const sp_stat_mat_t& mat, const char* fname);


#endif
// EOF
